import java.util.Scanner;

public class 菱形 {
    public static void main(String[] args) {

        Scanner sc = new Scanner(System.in);
        System.out.println("请输入要打印空心菱形的边长：");
        int Side_length = sc.nextInt();

        for (int i = 0; i < (2 * Side_length); i++) {
            if (i <= 5) {
                for (int j = Side_length-i; j > 0; j--) {
                    System.out.print(" ");
                }
                for (int k = 0; k < i; k++) {
                    if (k == 0 | k == i-1) {
                        System.out.print("* ");
                    }else{
                        System.out.print("  ");
                    }
                }
            }else{
                for (int j = 0; j < i-Side_length; j++) {
                    System.out.print(" ");
                }
                for (int k =(2 * Side_length) - i; k > 0; k--) {
                    if (k == 1 | k == (2 * Side_length) - i) {
                        System.out.print("* ");
                    }else{                          
                        System.out.print("  ");
                    }
                }
            }
            System.out.println(" ");
        }
    }
}